<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // 作业3 换算
       var origin = 1234567; 
       var date = parseInt(origin / (60 * 60 * 24))
       var hours = parseInt(origin % (60 * 60 * 24) / (60 * 60))
       var minutes = parseInt(origin % (60 * 60 ) / 60)
       var seconds = origin % 60;
       console.log(date+"天"+hours+"小时"+minutes+"分钟"+seconds+"秒")
    </script>
</body>
</html>